import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import show from '@feidao/web/atom/browser/ui/show';
import hide from '@feidao/web/atom/browser/ui/hide';

export default async function a006(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// X的出现和隐藏
	const dom = args[0].currentTarget;
	const value = dom.value;
	const x_dom = dom.nextElementSibling;

	if (value.length === 0) {
		hide(x_dom);
	} else {
		show(x_dom);
	}
}

